package com.soft.mainsite.module.sensitiveword.dao;

import com.soft.mainsite.module.sensitiveword.dto.SensitiveWordQueryParams;
import com.soft.mainsite.module.sensitiveword.entity.SensitiveWord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * SensitiveWordDao.java 此类用于敏感词dao
 *
 * @author:李昭阳
 * @date:2019/4/11 0011
 * @remark:
 */
public interface SensitiveWordDao {

    /**
     * 条件查询敏感词列表
     * @param queryParams
     * @return
     */
    List<SensitiveWord> selectSensitiveWordByConditions(@Param("params") SensitiveWordQueryParams queryParams);

    /**
     * 批量添加敏感词
     * @param wordContents
     * @return
     */
    int insertSensitiveWord(String[] wordContents);

    /**
     * 放行敏感词
     * @param ids
     * @return
     */
    int permitSensitiveWord(Long[] ids);

    /**
     * 删除敏感词
     * @param ids
     * @return
     */
    int deleteSensitiveWord(Long[] ids);
}
